#ifndef __TYPE_DEF_H__
#define __TYPE_DEF_H__
#include <htc.h>

#ifndef _XTAL_FREQ
    #define _XTAL_FREQ 8000000
#endif

#ifndef SYSTEM_TICK_PERIOD
    #define SYSTEM_TICK_PERIOD  10      // khoang 10 ms
#endif


typedef unsigned char   U8;
typedef char            S8;
typedef unsigned short  U16;
typedef short           S16;

typedef enum _bool
{
    false,
    true
} bool;

typedef unsigned char   BOOL;
#define TRUE            0
#define FALSE           1

//#define TESTING_MODE
//#define SLEEP_MODE_ENABLE

#endif  //#ifdef __TYPE_DEF_H__